/**
 * Created by Administrator on 2016/5/5.
 */
var SPSdk = (function () {

    function SPSdk() {
        this.appId = "";
        this.appKey = "";
        this.token = "";
        this.payKey = "";
        this.loginKey = "";
        this.queryParams = {};
        this.userToken = "";
        this.otherKey = "";
        this.userID = "";
    }

    var __proto = SPSdk.prototype;

    __proto.login = function (param, callback, shareHandler) {
        var m_this = this;
        console.log("上海酷游登录：" + JSON.stringify(param));

        callback && callback({"result":0,"spuid":myData.data.uuid});


    }

    __proto.pay = function (param, callback) {
        var m_this = this;
        console.log("上海酷游支付：" + JSON.stringify(param));


    };

    __proto.init = function (param, callback) {
        console.log("上海酷游初始化：" + JSON.stringify(param));
        var m_this = this;
        m_this.appId = param.appId;
        m_this.appKey = param.appKey;
        m_this.payKey = param.payKey;
        m_this.loginKey = param.loginKey;
        m_this.otherKey = param.other;
        m_this.queryParams = param.queryParams;
        callback && callback({"result": 0, "desc": "OK"});
    };
    return SPSdk;
})();